home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5127 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: cloud9.net!not-for-mail
  2. From: hraiser@cloud9.net
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: U MUST READ THIS!!!!!
  5. Date: 2 Feb 1996 12:49:34 -0500
  6. Organization: Cloud 9 Internet, White Plains, NY, USA
  7. Message-ID: <4etire$obb@cloud9.net>
  8. References: <4epbn1$4hq@ixnews7.ix.netcom.com>
  9. NNTP-Posting-Host: cloud9.net
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. Jeremy Johnston (jeremyx@ix.netcom.com) wrote:
  13. :             Everyone keeps telling me not to use the "goto"
  14. : statement,they act like it's the plague! What is wrong with the goto
  15. : statement & what can i use in it's place?
  16.  
  17.   The goto keyword has no place in an object oriented and/or structured
  18. programming environment.  It is rarely used in professional programming, and
  19. when it is used chances are that it's use could have been worked around. 
  20. The only place I have seen it used in professional class C/C++ code is to
  21. jump out of loops.  Bottom line is the unwritten law has always been "don't
  22. use goto unless you really know how to code and you are up to the criticism
  23. it's use may bring."
  24.  
  25.   After reading your previous posts, I suggest you pick up a introductory
  26. C primer and thoroughly digest it before you attempt to post on the
  27. comp.lang.c* newsgroups.
  28.  
  29.   
  30.